home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
hackertest.lha
/
Quest.doc
< prev
next >
Wrap
Text File
|
1992-11-22
|
2KB
|
73 lines
Quest version 0.2
Quest is a sort of trivia program which asks different questions and calculates
a score depending on the answers. Each question can be answered with one choice
(unless multiple choices are allowed), represented by a number.
In addition to these numbers, som special commands can be used at any
question prompt:
AGAIN - display the question again, with the alternatives.
LEFT - Show how many questions there are left (at most) before we are finished.
QUIT - Quit immediately.
Quest takes one argument on the command line, which is the name of a question
file with all the questions. The format of the data in the question file is
this:
Initial:
Here we can type text that will be displayed before asking the questions.
Just type any text you want here.
// This is a comment line however, and will not show up in the initial text.
// All comment lines begin with '//'
This text will be shown however.
::::
// The :::: above is an 'end of section' marker, ending any of the possible
// section in a question file, Initial being one of them.
Scores:
<lownum> - <highnum> : Some text
<lownum> - <highnum> : Some more text
// <lownum> and <highnum> are oridinary numbers specifying a range for
// the scores. The text last on the line gives a message for this score range.
// Any number of lines with ranges can be used, memory permitting.
::::
Questions:
<qnum>:[*] <Question text>
* <points> <Selection text> [=> <nextnum>]
* <points> <Selection text> [=> <nextnum>]
* <points> <Selection text> [=> <nextnum>]
// This is a question entry. <qnum> is a number associated with the question.
// The * after the : on the first line is only used if the question allows
// multiple choices. The question itself is in <Question text>.
// Each possible choice is for a question is represented by a line beginning
// with a *. After this star it is specifyed how many points this answer should
// add to the score and right after that the text describing the selection.
// After a question <qnum> is answered, the default is to go to question
// <qnum< + 1. THere is possible however to go to other questions, also
// depending on which the answer. This is specifyed by '=>' and a number
// <nextnum> which is the next question number. If <nextnum> is -1 the program
// asks no more questions and shows the score.
// Any number of selections and any number of questions can be used, memory
// permitting.
::::
End of Documentation